$('#but_1').click(function(){
    var layer_1=parent.layer;
    layer_1.close(layer_1.index);
})
$('#but_2').click(function(){
    //商品名称:
    var remark=document.getElementById("remarks").value;
    //商品分类:
    var moneyId=$("#select_id").find("option:selected").val();
    //商品现价:
    var email=document.getElementById("email").value;
    //商品原价::
    var position_id=document.getElementById("position_id").value;
    //审核状态:
    var select2=$("#select_id2").find("option:selected").val();
    //上传人员:
    var position=document.getElementById("position").value;
    $.ajax({
        url: '/SyOperationController/SearchCourseReview',//异步调用接口的路径
        type:'post',
        data:{"remark":remark,"moneyId":moneyId,"email":email,"registerIp":position_id,"enabled":select2,"freestyle":position},
        success:function(data){
            console.log(data.data)
            stringify("data",data.data)
        }
    })

    var layer_1=parent.layer;
    layer_1.close(layer_1.index);
    // window.parent.location.reload();//刷新父页面
    //存值
    stringify=function (obj,data){
        return window.localStorage.setItem(obj, JSON.stringify(data));

    }
})
